from PyQt4.QtCore import *
from PyQt4.QtGui import *
import Ui_login

class Login(QDialog, Ui_login.Ui_LoginDlg):
  def __init__(self, parent=None):
        super(Login, self).__init__(parent)
        self.setupUi(self)        
#        self.setAttribute(Qt.WA_DeleteOnClose)
 
if __name__ == "__main__":
    import sys
    app = QApplication(sys.argv)
    form = Login()
    form.show()
    app.exec_()
